<section class="wrapper">
    <div class="row">
        <div class="col-lg-12">
            <section class="panel">
                <div class="panel-body progress-panel">
                    <div class="row">
                        <div class="col-lg-8 task-progress pull-left">
                            <h1>Notícias registradas</h1>
                        </div>

                  </div>
                </div>
                <table class="table table-hover personal-task">
                    <thead>
                        <th>ID</th>
                        <th>Título</th>
                        <th>Subtítulo</th>
                        <th>Status</th>
                        <th style="text-align: right;">Ações</th>
                    </thead>
                    <tbody>
                        <?php foreach($Notices as $Notice):?>
                        <tr>
                            <td>
                                <?php echo($Notice['Notice']['id']);?>
                            </td>
                            <td>
                                <?php echo($Notice['Notice']['title']);?>
                            </td>
                            <td>
                                <?php echo($Notice['Notice']['subtitle']);?>
                            </td>
                            <td>
                                <?php echo($Notice['Notice']['status'] ? $this->Element("StatusOnline") : $this->Element("StatusOffline"));?>
                            </td>
                            <td>
                                <!--<div id="work-progress2"></div>-->
                                <?php
                                echo $this->Html->link(
                                    '<span class="badge bg-info">Editar</span>',
                                    array('action' => 'edit',$Notice['Notice']['id'], 'full_base' => true,),array('escape' => false)
                                );
                                ?>
                                <?php
                                echo $this->Html->link(
                                    '<span class="badge bg-danger">Remover</span>',
                                    array('action' => 'delete',$Notice['Notice']['id'], 'full_base' => true,),array('escape' => false)
                                );
                                ?>
                            </td>
                        </tr>
                        <?php endforeach;?>
                    </tbody>
                </table>
            </section>
            <?php
            echo $this->Html->link(
                '<span class="well badge bg-info">Adicionar novo</span>',
                array('action' => 'add', 'full_base' => true,),array('escape' => false)
            );
            ?>
        </div>
    </div>
</section>
